package com.gjy.nacos.server.controller;

import com.gjy.nacos.server.feign.UserService;
import com.gjy.nacos.server.rest.UserRest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-03-08 17:08:40
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserRest userRest;

    @Resource
    private UserService userService;

    @PostMapping("/find")
    public Object find(@RequestBody Map<String, Object> req) {
        return userService.find(req);
    }

}
